package com.jiawa.wiki.service;

import com.jiawa.wiki.domain.Demo;
import com.jiawa.wiki.domain.DemoExample;
import com.jiawa.wiki.mapper.DemoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 荀彧 2021/5/17
 * demo service
 */
@Service
public class DemoService {

    @Resource
    private DemoMapper mapper;

    public List<Demo> list() {
        return mapper.selectByExample(new DemoExample());
    }
}

